package it.francescogabbrielli.android.solidalapp;

import java.io.Serializable;

public class ChatMessage implements Serializable {
	
	private static final long serialVersionUID = -1503150302241038340L;
	
	public enum Type {INCOMING, SENDING, SENT, ERROR};
	
	public long id;
	public String text;
	public Type type;
	
	public ChatMessage(long id, String text, Type type) {
		this.id = id;
		this.text = text;
		this.type = type;
	}
	
	@Override
	public String toString() {
		return text;
	}
	
}

